package com.example.aerospacemanagementsystem.service.attendanceService.impl;



import com.example.aerospacemanagementsystem.entity.attendance.Travel;

import com.example.aerospacemanagementsystem.mapper.attendanceMapper.TravelMapper;
import com.example.aerospacemanagementsystem.service.attendanceService.TravelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 李明国
* @description 针对表【travel】的数据库操作Service实现
* @createDate 2023-10-20 15:16:25
*/
@Service
public class TravelServiceImpl implements TravelService{
    @Autowired
    private TravelMapper travelMapper;

    @Override
    public int add(Travel travel) {
        return travelMapper.insert(travel);
    }

    @Override
    public int delete(Travel travel) {
        return travelMapper.delete(travel);
    }

    @Override
    public int update(Travel travel) { return travelMapper.update(travel);
    }

    @Override
    public List<Travel> getAllTravel(Travel travel) {
        return travelMapper.getAllTravel(travel);
    }

}




